#ifndef CODE_DOT_H
#define CODE_DOT_H

#include "list/quadList.h"
#include "list/intList.h"

/************ WARNING *****************/
/************ WARNING *****************/
/************ WARNING *****************/
/* CODE LIST HAS SUBSCRIPT FROM 0 TO 2^64-1 */

struct code
{
  quadList list;
};

struct code CODE;
unsigned long int NEXTQUAD;

void backpatch(intList quadRefs,unsigned long int addr);
void setAddr(unsigned long int quadRef,unsigned long int addr);
void setEntryPoint(unsigned long int addr);
unsigned long int gen(quad q);

/* init the code, add the GOTO quad for entry point in program */
void initCode();
void printCode();
#endif 
